package com.powernode.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.powernode.domain.MemberAddr;

import java.util.List;

/**
* @author 贺
* @description 针对表【member_addr(用户配送地址)】的数据库操作Service
* @createDate 2024-07-19 19:17:03
*/
public interface MemberAddrService extends IService<MemberAddr> {

    /**
     * 查询会员收货地址集合
     * @param openId
     * @return
     */
    List<MemberAddr> queryMemberAddrList(String openId);

    /**
     * 会员新增收货地址
     * @param memberAddr
     * @param openId
     * @return
     */
    boolean saveMemberAddr(MemberAddr memberAddr, String openId);

    /**
     * 修改会员收货地址
     * @param memberAddr
     * @param openId
     * @return
     */
    Boolean modifyMemberAddrInfo(MemberAddr memberAddr, String openId);

    /**
     * 删除会员收货地址
     * @param addrId
     * @param openId
     * @return
     */
    Boolean removeMemberAddr(Long addrId, String openId);

    /**
     * 会员设置默认收货地址
     * @param newAddrId
     * @param openId
     * @return
     */
    Boolean modifyMemberDefaultAddr(Long newAddrId, String openId);
}
